package com.lv.leyou.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lv.leyou.common.dto.PageDTO;
import com.lv.leyou.dto.SkuDTO;
import com.lv.leyou.dto.SpuDTO;
import com.lv.leyou.dto.SpuDetailDTO;
import com.lv.leyou.entity.Spu;

import java.util.List;

public interface SpuService extends IService<Spu> {
    PageDTO<SpuDTO> pageSpu(Long page, Long rows,Long brandId,Long categoryId,Long id,Boolean saleable);

    void addSpu(SpuDTO spuDTO);

    SpuDTO querySpuDto(Long id);

    SpuDetailDTO querySpecDetail(Long id);


    List<SkuDTO> querySkulistBySpuid(Long id);

    List<SkuDTO> querySkuList(List<Long> ids);

    SpuDTO querySkuById(Long id);

    void updatesaleable(Long id, Boolean saleable);
}